import request from '@/utils/request'

export function listchargeHead(query) {
  return request({
    url: '/chargeHead/list',
    method: 'get',
    params: query
  })
}

export function createchargeHead(data) {
  return request({
    url: '/chargeHead/create',
    method: 'post',
    data
  })
}

export function readchargeHead(data) {
  return request({
    url: '/chargeHead/get/' + data.fbillno,
    method: 'get'
  })
}

export function updatechargeHead(data) {
  return request({
    url: '/chargeHead/update',
    method: 'post',
    data
  })
}

export function deletechargeHead(data) {
  return request({
    url: '/chargeHead/delete/' + data.fbillno,
    method: 'delete'
  })
}

export function statusUpdate(query) {
  return request({
    url: '/chargeHead/statusUpdate',
    method: 'get',
    params: query
  })
}

